/*
 * Copyright (c) 2022.版权所有高金磊
 */

package 领扣算法.AA中等题.按符号重排数组;

public class Main {
    public int[] rearrangeArray(int[] nums) {
        for (int i = 0; i < nums.length; i++) {
            int target;
            if (i%2==0)
                target=1;
            else
                target=-1;
            int j;
            for (j = i; j < nums.length; j++) {
               if (target*nums[j]>0)
                   break;
            }
            if (j==nums.length)
                break;
            int middle=nums[j];
            for (int k = i; k < j; k++) {

            }
        }
        return nums;
    }
}
